<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf"%>
<script type="text/javascript" src="${ctx}/js/system/user/add.js">
	
</script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
	position: relative;
	top: 9px;
	text-align: right;
}


.col-sm-9 {
	width: 32%;
	float: left;
	text-align: left;
}


label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		  action="${ctx}/disc/saveData.shtml">
		<section class="panel panel-default">
            <input name="discFormMap.id" value="${data.id}" type="hidden">
			<div class="panel-body">
				<div class="form-group">
					<div class="col-sm-3">
						<label class="control-label">派工编号</label>
					</div>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							   name="discFormMap.ly_batch_code" id="ly_batch_code" value="${data.ly_batch_code}">
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">作业编号</label>
						<div class="col-sm-9">
							<select class="form-control" name="discFormMap.ly_homwork_code" id="ly_homwork_code">
								<c:forEach items="${homework}" var="d">
									<c:choose>
										<c:when test="${d.id == data.ly_homwork_code}">
											<option value="${d.id}" selected="selected">${d.ly_process_name}</option>
										</c:when>
										<c:otherwise>
											<option value="${d.id}">${d.ly_process_name}</option>
										</c:otherwise>
									</c:choose>

								</c:forEach>

							</select>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">生产批号</label>
					<div class="col-sm-9">
						<select class="form-control" name="discFormMap.ly_production" id="ly_production">
							<c:forEach items="${work}" var="d">
								<c:choose>
									<c:when test="${d.bpid == data.ly_production}">
										<option value="${d.bpid}" selected="selected">${d.bpcode}</option>
									</c:when>
									<c:otherwise><option value="${d.bpid}">${d.bpcode}</option></c:otherwise>
								</c:choose>
							</c:forEach>

						</select>
					</div>

					<div class="form-group">
						<label class="col-sm-3 control-label">派工数量</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								   name="discFormMap.ly_num" id="ly_num" value="${data.ly_num}">
						</div>
					</div>
				</div>

				<div class="form-group">
					<label class="col-sm-3 control-label">派工工时</label>
					<div class="col-sm-9">
						<input type="text" class="form-control"
							   name="discFormMap.ly_date" id="ly_date" value="${data.ly_date}">
					</div>
				</div>
				<footer class="panel-footer text-right bg-light lter">
					<button type="submit" class="btn btn-success btn-s-xs">提交</button>
				</footer>
		</section>
	</form>

	<script type="text/javascript">
		onloadurl();
	</script>
	<script type="text/javascript"
		src="${ctx}/notebook/notebook_files/bootstrap-filestyle.min.js"></script>
</body>
</html>